package com.ilancuo.thinkinjava.chapter_11;

import java.util.*;

public class SetOfInteger {
    public static void main(String[] args) {
        Random random = new Random(47);
//        Set<Integer> set = new HashSet<>();
//        Set<Integer> set = new TreeSet<>();
        Set<Integer> set = new LinkedHashSet<>();
        for (int i = 0; i < 10000; i++) {
            set.add(random.nextInt(30));
        }
        System.out.println(set);
    }
}
